$con = mysql_connect("10.110.2.17","root","zxccccccc");    //连接数据库

if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }
mysql_select_db("discuzx", $con);     //数据库
mysql_query('set names gbk');    //数据库编码

$ss1=mysql_query("insert into pre_ctbit_zztj(tid,filename) select tid,filename from pre_xbtit_files where seeds = 0 ");
$ss2 = mysql_query($ss1, $con);  


function update($FieldName2)
{
    mysql_query("update pre_ctbit_tjtimes set $FieldName2 where id = 9 ");      
}
mysql_query("SET NAMES utf8");  

update("times = times+1");